//------------------------------------------------------------------------------
//此代码由工具生成
//请使用partial类进行扩展,避免修改被覆盖
//createTime:2024-01-04 16:13:24
//------------------------------------------------------------------------------
using System.Linq.Expressions;
using System;
using System.Collections.Generic;
using System.Linq;
using XKPlatform.DataModels.Dao.BaseDao;
using XKPlatform.DataModels.Dao.BaseEntity;
using XKPlatform.DataModels;
using XKPlatform.IService;
using FreeSql;
namespace XKPlatform.Service
{
    public partial class TempTestService :BaseFreeSqlDao<TempTest>, ITempTestService
    {
            public bool AddModel(TempTest model)
            {
                return InsertAffrows(model) > 0;
            }

            public bool BatchSave(List<TempTest> models)
            {
                return BatchInsert(models) > 0;
            }

            public (List<TempTest> list, long count) GetList(Expression<Func<TempTest, bool>> where, List<SortInfo<TempTest, object>> orderbys = null, PageInfo pageInfo = null)
            {
                return Query(where, orderbys, pageInfo);
            }

            public (List<TempTest> list, long count) GetListByTbName(Expression<Func<TempTest, bool>> where,string tbName, List<SortInfo<TempTest, object>> orderbys = null, PageInfo pageInfo = null)
            {
                return Query(where, tbName,orderbys, pageInfo);
            }

            public TempTest GetModel(Expression<Func<TempTest, bool>> where)
            {
                return GetByOne(where);
            }

            public bool UpdateModel(TempTest model, Expression<Func<TempTest, bool>> where, Expression<Func<TempTest, object>> IgnoreLmbad = null)
            {
                return Update(model, where, IgnoreLmbad);
            }
            public IUpdate<TempTest> UpdateBySets(Expression<Func<TempTest, bool>> where)
            {
                return this.UpdateBySet(where);
            }
    }
}
